function This = islocked(varargin)
% islocked  Get lock status of dynamic links or sstate update equations.
%
%
% Syntax
% =======
%
%     List = islocked(M,'!links')
%     Flag = islocked(M,'!links',Name);
%     List = islocked(M,'!sstate_update');
%     Flag = islocked(M,'!sstate_update',Name);
%
%
% Input arguments
% ================
%
% * `M` [ model ] - Model object.
%
% * `Name` [ char ] - Name of LHS variable in links or sstate update
% equations whose status will be returned.
%
%
% Output arguments
% =================
%
% * `List` [ cellstr ] - List of LHS names in [`!links`](modellang/links) or
% [`!sstate_update`](modellang/sstateupdate) equations that are currently
% locked in the model object `M`.
%
% * `Flag` [ `true` | `false` ] - Lock status (`true` if locked, `false` if
% not locked) of LHS name `Name` in [`!links`](modellang/links) or
% [`!sstate_update`](modellang/sstateupdate) equations.
%
% Example
% ========
%

% -IRIS Toolbox.
% -Copyright (c) 2007-2015 IRIS Solutions Team.

%--------------------------------------------------------------------------

This = mylock(varargin{:},0);

end
